﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPY.LeHealth.Service
{
    using AutoMapper;
    using AutoMapper.Execution;
    using AutoMapper.Configuration;
    using AutoMapper.Mappers;
    using LPY.LeHealth.DTO;
    using LPY.LeHealth.DAL;
  public   class combo2service
    {
    
      public List<combo2> getcombo2list1(int id)
      {
          var hospital = new com2dal().GetAllComboType(id);
          var rtv = Mapper.Map<List<combo2>, List<combo2>>(hospital);
          return rtv;
      }
      /// <summary>
      /// 根据城市id显示套餐信息
      /// </summary>
      /// <param name="cityid"></param>
      /// <returns></returns>
      public List<combo2> getbycityid(int cityid, string sex)
      {

          var cityids = new com2dal().getallbycityid(cityid,sex);
          var rtv = Mapper.Map<List<combo2>, List<combo2>>(cityids);
          return rtv;
      }
      private combo2dal Combo2_dal;
       public combo2service()
        {
            Combo2_dal = new combo2dal();
        }

       /// <summary>
       /// 显示防癌信息
       /// </summary>
       /// <returns></returns>
        public List<combo2> Getcombo()
        {
            return Combo2_dal.showcombo();
        }

       

    }
}
